﻿using Books.Data.Model;
using Books.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Books.Adapters
{
    public class BookMockAdapter : IBookAdapter
    {
        public void CreateBook(BookViewModel model, string userId)
        {

        }

        public BookViewModel GetBook(int BookId)
        {
            throw new NotImplementedException();
        }

        public List<BookViewModel> GetBooks(string userId)
        {
            List<BookViewModel> models = new List<BookViewModel>();

            models.Add(new BookViewModel
            {
                BookId = 1,
                Author = "Ayn Rand",
                BookImage = "http://www.ayn-rand-quotes.com/wp-content/uploads/2014/01/the-fountainhead.jpg",
                Rating = 10,
                Title = "The Fountainhead",

            });

            models.Add(new BookViewModel
            {
                BookId = 2,
                Author = "Ayn Rand",
                BookImage = "http://d.gr-assets.com/books/1405868167l/662.jpg",
                Rating = 10,
                Title = "Atlas Shrugged"
            });

            return models;

        }

        public void Update(BookViewModel model)
        {
            throw new NotImplementedException();
        }
    }
}
